from django.conf.urls.defaults import *
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^JaoeeProject/', include('JaoeeProject.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
           {'document_root': './media'}),
    (r'^$', 'JaoeeProject.DocShare.views.login'),
    (r'^logout/$', 'JaoeeProject.DocShare.views.logout'),
    (r'resource/show_resource/$','JaoeeProject.DocShare.views.show_resource'),
    (r'resource/ajax_leveltwo_resource/(?P<catogry>\d+)$','JaoeeProject.DocShare.views.ajax_leveltwo_resource'),
    (r'resource/show_leveltwo_resource/(?P<catogry>\d+)$','JaoeeProject.DocShare.views.show_leveltwo_resource'),
    (r'resource/show_files/(?P<file_id>\d+)$','JaoeeProject.DocShare.views.show_files',{'template_html':'resource/show_files.html'}),
    (r'file_operation/upload/$','JaoeeProject.DocShare.views.upload'),


)
